//
//  FGVoiceAnimationView.h
//  FGChatKit
//
//  Created by Henry on 2021/6/17.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, FGVoiceState) {
    FGVoiceNormal,
    FGVoiceWillCancel,
    FGVoiceCancel,
    FGVoiceFinished
};

@interface FGVoiceAnimationView : UIView

@property (nonatomic, strong) UIImageView *iconImageView;
@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) UIImageView *cancelImageView;
@property (nonatomic, strong) UILabel *stateLabel;
@property (nonatomic, strong) UILabel *timeLabel;

@property (nonatomic, assign) FGVoiceState state;

@property (nonatomic, strong) void(^timeoutEndRecordBlock)(void);

- (void)show;
- (void)dismiss;

@end

NS_ASSUME_NONNULL_END
